package com.itheima.pojo;


import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;
import java.util.List;

@Data
@Table(name = "t_blog")
public class Blog {

  @Id
  private String uid;

  private String title;
  private String summary;
  private String content;

  @Column(name = "tag_uid")
  private String tagUid;

  @Column(name = "click_count")
  private Integer clickCount;

  @Column(name = "collect_count")
  private Integer collectCount;

  @Column(name = "file_uid")
  private String fileUid;

  private Integer status;

  @Column(name = "create_time")
  private Date createTime;

  @Column(name = "update_time")
  private Date updateTime;

  @Column(name = "admin_uid")
  private String adminUid;

  @Column(name = "is_original")
  private String isOriginal;

  private String author;

  @Column(name = "articles_part")
  private String articlesPart;

  @Column(name = "blog_sort_uid")
  private String blogSortUid;

  private Integer level;

  @Column(name = "is_publish")
  private String isPublish;

  private Integer sort;

  @Column(name = "start_comment")
  private Integer startComment;

  @Transient
  private List<Tag> tagList;
  @Transient
  private BlogSort blogSort;
  @Transient
  private List<String> photoList;
  @Transient
  private Integer useSort;
  @Transient
  private Integer currentPage;
  @Transient
  private Integer pageSize;
  @Transient
  private String keyword;
  @Transient
  private String levelkeyword;
  @Transient
  private String timestamp;


  public String getUid() {
    return uid;
  }

  public void setUid(String uid) {
    this.uid = uid;
  }

  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public String getSummary() {
    return summary;
  }

  public void setSummary(String summary) {
    this.summary = summary;
  }

  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }

  public String getTagUid() {
    return tagUid;
  }

  public void setTagUid(String tagUid) {
    this.tagUid = tagUid;
  }

  public Integer getClickCount() {
    return clickCount;
  }

  public void setClickCount(Integer clickCount) {
    this.clickCount = clickCount;
  }

  public Integer getCollectCount() {
    return collectCount;
  }

  public void setCollectCount(Integer collectCount) {
    this.collectCount = collectCount;
  }

  public String getFileUid() {
    return fileUid;
  }

  public void setFileUid(String fileUid) {
    this.fileUid = fileUid;
  }

  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public Date getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(Date updateTime) {
    this.updateTime = updateTime;
  }

  public String getAdminUid() {
    return adminUid;
  }

  public void setAdminUid(String adminUid) {
    this.adminUid = adminUid;
  }

  public String getIsOriginal() {
    return isOriginal;
  }

  public void setIsOriginal(String isOriginal) {
    this.isOriginal = isOriginal;
  }

  public String getAuthor() {
    return author;
  }

  public void setAuthor(String author) {
    this.author = author;
  }

  public String getArticlesPart() {
    return articlesPart;
  }

  public void setArticlesPart(String articlesPart) {
    this.articlesPart = articlesPart;
  }

  public String getBlogSortUid() {
    return blogSortUid;
  }

  public void setBlogSortUid(String blogSortUid) {
    this.blogSortUid = blogSortUid;
  }

  public Integer getLevel() {
    return level;
  }

  public void setLevel(Integer level) {
    this.level = level;
  }

  public String getIsPublish() {
    return isPublish;
  }

  public void setIsPublish(String isPublish) {
    this.isPublish = isPublish;
  }

  public Integer getSort() {
    return sort;
  }

  public void setSort(Integer sort) {
    this.sort = sort;
  }

  public Integer getStartComment() {
    return startComment;
  }

  public void setStartComment(Integer startComment) {
    this.startComment = startComment;
  }

  public List<Tag> getTagList() {
    return tagList;
  }

  public void setTagList(List<Tag> tagList) {
    this.tagList = tagList;
  }

  public BlogSort getBlogSort() {
    return blogSort;
  }

  public void setBlogSort(BlogSort blogSort) {
    this.blogSort = blogSort;
  }

  public List<String> getPhotoList() {
    return photoList;
  }

  public void setPhotoList(List<String> photoList) {
    this.photoList = photoList;
  }

  public Integer getUseSort() {
    return useSort;
  }

  public void setUseSort(Integer useSort) {
    this.useSort = useSort;
  }

  public Integer getCurrentPage() {
    return currentPage;
  }

  public void setCurrentPage(Integer currentPage) {
    this.currentPage = currentPage;
  }

  public Integer getPageSize() {
    return pageSize;
  }

  public void setPageSize(Integer pageSize) {
    this.pageSize = pageSize;
  }

  public String getKeyword() {
    return keyword;
  }

  public void setKeyword(String keyword) {
    this.keyword = keyword;
  }

  public String getLevelkeyword() {
    return levelkeyword;
  }

  public void setLevelkeyword(String levelkeyword) {
    this.levelkeyword = levelkeyword;
  }

  public String getTimestamp() {
    return timestamp;
  }

  public void setTimestamp(String timestamp) {
    this.timestamp = timestamp;
  }
}
